<template>
  <div class="cashNum">
    <div class="moneyBox">
      <div class="num">{{ InfoTable.rebateTotalAmount | dealPrice }}</div>
      <div class="title">返利总额(元)</div>
    </div>
    <div class="moneyBox">
      <div class="num">{{ InfoTable.leaveWithdrawAmount | dealPrice }}</div>
      <div class="title">可提现(元)</div>
    </div>
    <div class="moneyBox">
      <div class="num">{{ InfoTable.unArrivalAmount | dealPrice }}</div>
      <div class="title">未到账金额(元)</div>
    </div>
    <div class="moneyBox">
      <div class="num">{{ InfoTable.frozenAmount | dealPrice }}</div>
      <div class="title">冻结金额(元)</div>
    </div>
    <div class="moneyBox">
      <div class="num">
        {{ InfoTable.accumulateWithdrawTotalAmount | dealPrice }}
      </div>
      <div class="title">已提现金额(元)</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "cashDetails",
  props: {
    InfoTable: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  filters: {
    dealPrice(item) {
      return item ? "￥" + (item / 100).toFixed(2) : "";
    },
  },
};
</script>
<style scoped lang="less">
.cashNum {
  margin: 20px auto;
  width: 90%;
  background: #d7d7d7;
  display: flex;
  padding: 30px 40px;
  justify-content: space-between;
  .moneyBox {
    display: flex;
    // flex: 1;
    flex-direction: column;
    align-items: center;

    .num {
      font-size: 22px;
    }
    .title {
      font-size: 20px;
      margin-top: 5px;
    }
  }
}
</style>